package csvs

import "MyWuXiaGame/server/src/utils"

type Skill struct {
	SkillID 	int 	`json:"SkillID"`
	SkillName 	string 	`json:"SkillName"`
	SkillLv		int 	`json:"SkillLv"`
	SkillExp	int 	`json:"SkillExp"`
	BaseDamage	int 	`json:"BaseDamage"`
}

type SkillDescribe struct {
	SkillID 		int 	`json:"SkillID"`
	SkillName 		string 	`json:"SkillName"`
	Weight			int 	`json:"Weight"`
	SkillDescribe	string 	`json:"SkillDescribe"`
	HitDescribe		string 	`json:"HitDescribe"`
	FeelDescribe	string 	`json:"FeelDescribe"`
}

var (
	ConfigSkillSlice		 []*Skill
	ConfigSkillDescribeSlice []*SkillDescribe
)

func init() {
	utils.GetCsvUtilMgr().LoadCsv("Skill", &ConfigSkillSlice)

	ConfigNpcMap = make(map[int]*ConfigNpc)
	for _, v := range ConfigNpcSlice {
		ConfigNpcMap[v.NpcId] = v
	}

	utils.GetCsvUtilMgr().LoadCsv("SkillDescribe", &ConfigSkillDescribeSlice)
	return
}